package com.tonghai.repository;

import com.tonghai.domain.Girl;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.Optional;

public interface GirlRepository extends JpaRepository<Girl, Integer> {

    //通过年龄来查询
    public Optional<Girl> findById(Integer age);

    List<Girl> findAllById(Integer id);
}
